<%@page contentType="text/html;charset=utf-8"%>
<%@include file="../../core/common.jsp"%>
<html>
<head>
<title></title>
</head>
<body>
	<div class="easyui-panel" data-options="fit:true,border:false,footer:'#fb'">
		<form id="fm">
			<input name="id" type="hidden">
			<table class="form-layout w90 p-t-10 p-r-30">
				<tr>
					<td>出库日期：</td>
					<td><input name="ckrq" class="easyui-datebox" data-options="required:true" /></td>
					<td>到达日期：</td>
					<td><input name="ddrq" class="easyui-datebox" data-options="required:true" /></td>
				</tr>
				<tr>
					<td>纳入日期：</td>
					<td><input name="nrrq" class="easyui-datebox" data-options="editable:false,required:true" /></td>
					<td>车次：</td>
					<td><input name="cc" class="easyui-numberspinner" data-options="required:true,min:0,max:100" /></td>
				</tr>
				<tr>
					<td>明细：</td>
					<td><input name="mx" class="easyui-textbox" data-options="required:true" validType="maxLength[10]" disabled="disabled" /></td>
				</tr>
				<tr>
					<td>箱号：</td>
					<td><input name="xh" class="easyui-textbox" data-options="required:true" validType="maxLength[50]" /></td>
					<td>车号：</td>
					<td><input name="ch" class="easyui-textbox" data-options="required:true" validType="maxLength[20]" /></td>
				</tr>
			</table>
		</form>
	</div>
	<div id="fb">
		<a id="save" class="form-btn success">确定</a>
	</div>
</body>
<script>
	$(function() {
		$('#fm').form('load', '${CTX}/mgt/t/ckd/get?id=${param.id}');
		$('#save').click(function() {
			if (!$('#fm').form('validate')) {
				return;
			}
			$.mask();
			$.ajax({
				url : '${CTX}/mgt/t/fhd/update',
				data : $('#fm').serialize(),
				success : function(data) {
					$.unmask();
					$.handle(data, function() {
						$.close();
					});
				}
			});
		});
	});
</script>
</html>